import type { ActionProps } from "~/types/enum";

export enum RoleApi {
  GetList = "api/Role/GetList",
  AddorUpdate = "api/Role/AddorUpdate",
  CheckData = "api/Role/CheckRoleName",
  CheckDatab = "api/Role/CheckRoleCode",
  Delete = "api/Role/Delete",
  GetDetail = "api/Role/GetListb",
  Reduction = "api/Role/Reduction",
  GetListAll = "api/Role/GetListd",
  GetRoleResourceList = "api/Menu/GetTreeListc",
  AddResourceToRole = "api/Menu/AddResourceToRole"
}
export class RoleAction {
  actionPros: ActionProps = {
    addCode: "RoleAdd",
    deleteCode: "RoleDelete",
    updateCode: "RoleUpdate",
    queryCode: "RoleGetList",
    importCode: "",
    exportCode: "RoleExport",
    downImportCode: "",
    reductionCode: "RoleReduction",
    recyclebinCode: "RoleRecyclebin",
    show: true
  };
}
export interface RoleInfo {
  rCode: string;
  rName: string;
  pName: string;
  rIds: string;
  parentId: string;
}
